cpupool: correct removing cpu from cpupool
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Aug 2010 15:39:09 +0000 (16:39 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Aug 2010 15:39:09 +0000 (16:39 +0100)
Corrects an error introduced with cs 21422.
Without the patch my machine crashed when removing a cpu from a
cpupool other than Pool-0.

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
xen/common/schedule.c

index 497da1862c59d79b6215d328696183c98c1e7c65..779ad1930f3566d91659db69b6b4e961bb256383 100644 (file)
@@ -1313,7 +1313,7 @@ void schedule_cpu_switch(unsigned int cpu, struct cpupool *c)
 
     spin_unlock_irqrestore(per_cpu(schedule_data, cpu).schedule_lock, flags);
 
-    SCHED_OP(old_ops, free_vdata, vpriv);
+    SCHED_OP(old_ops, free_vdata, vpriv_old);
     SCHED_OP(old_ops, free_pdata, ppriv_old, cpu);
 }